package com.cn.mapper.dao.db1;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.bean.pojo.file.FileDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;


import java.util.List;

@Mapper
public interface FileUploadDao extends BaseMapper<FileDetails>{

    Boolean insertScxx(FileDetails fileDetails);

    List<FileDetails>selectUpload(FileDetails fileDetails);
    @Update(" update Scxx\n" +
            "        set iSdel=1\n" +
            "        where id=#{id}")
    Boolean delScxx(int id);
    @Select("  select * from Scxx\n" +
            " where fileName=#{fileName} and iSdel=0")
    List<FileDetails> selectCf(String fileName);
}
